package 笔试.A网易;

import java.util.LinkedList;
import java.util.Scanner;

public class third {
    public static void main(String arg[]){//main--来自高金磊

         Scanner scanner=new Scanner(System.in);
         int n=scanner.nextInt();
        LinkedList<Integer> data1=new LinkedList<>();
        LinkedList<Integer> data2=new LinkedList<>();
        for (int i = 1; i <=n; i++) {
            if (i%2==0)
                data2.add(i);
            else
                data1.add(i);
        }
        StringBuilder stringBuilder=new StringBuilder();
        LinkedList<Integer> res=new LinkedList<>();
        res.add(data2.pollFirst());

        while (!data1.isEmpty()){
            if (res.peek()%2==1){
                    res.add(data2.pollFirst());
                if (!data2.isEmpty())
                    res.add(data2.pollFirst());
            }else {

                res.add(data1.pollFirst());
                if (!data1.isEmpty())
                    res.add(data1.pollFirst());
            }
            stringBuilder.append(res.pollFirst()).append(' ');
        }
        res.addAll(data2);
        for (Integer re : res) {
            stringBuilder.append(re).append(' ');
        }
        String result=stringBuilder.toString();
        result=stringBuilder.substring(0,stringBuilder.length()-1).toString();
        System.out.println(result);

    }
}
